@model ShivamEMR.Model.Domain.PharmacyDomain.DrugItem

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>DrugItem</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Balance</div>
    <div class="display-field">@Model.Balance</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Barcode</div>
    <div class="display-field">@Model.Barcode</div>

    <div class="display-label">ItemType</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.ItemType).ToString()</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group).ToString()</div>

    <div class="display-label">Manufacturer</div>
    <div class="display-field">@(Model.Manufacturer == null ? "None" : Model.Manufacturer.Name)</div>

    <div class="display-label">Picture</div>
    <div class="display-field">@(Model.Picture == null ? "None" : Model.Picture.Title)</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Status).ToString()</div>

    <div class="display-label">Prices</div>
    <div class="display-field">@(Model.Prices == null ? "None" : Model.Prices.Count.ToString())</div>

    <div class="display-label">DrugItemCode</div>
    <div class="display-field">@Model.DrugItemCode</div>

    <div class="display-label">DrugItemNotes</div>
    <div class="display-field">@Model.DrugItemNotes</div>

    <div class="display-label">Drug</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Drug).ToString()</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


